class LocalVideoData {
  String? cover;
  String? video;
  String? localUrl;

  LocalVideoData({
    this.cover,
    this.video,
    this.localUrl,
  });

  LocalVideoData copyWith({
    String? cover,
    String? video,
    String? localUrl,
  }) {
    return LocalVideoData(
      cover: cover ?? this.cover,
      video: video ?? this.video,
      localUrl: localUrl ?? this.localUrl,
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'cover': cover,
      'video': video,
      'localUrl': localUrl,
    };
  }

  factory LocalVideoData.fromJson(Map<String, dynamic> json) {
    return LocalVideoData(
      cover: json['cover'] as String?,
      video: json['video'] as String?,
      localUrl: json['localUrl'] as String?,
    );
  }

  @override
  String toString() =>
      "LocalVideoData(cover: $cover,video: $video,localUrl: $localUrl)";

  @override
  int get hashCode => Object.hash(cover, video, localUrl);

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
          other is LocalVideoData &&
              runtimeType == other.runtimeType &&
              cover == other.cover &&
              video == other.video &&
              localUrl == other.localUrl;
}
